<!-- 我的弹窗 -->

<template>
  <WebModal large>
    <WebForm>
      <EasyRow col2>
        <FormInput label="角色名称" bind="roleName" :max="20" required />
        <ShowText label="角色名称" bind="roleName" />
      </EasyRow>

      <EasyRow col6>
        <FormSwitch label="状态" bind="status" trueText="启用" falseText="禁用" :switchWidth="70" />
        <FormSwitch label="状态" bind="status" />
        <FormSwitch label="状态" bind="status" text="启用" isCheckbox word2 />

        <ShowSwitch label="状态" bind="status" trueText="启用" falseText="禁用" :switchWidth="70" />
        <ShowSwitch label="状态" bind="status" />
        <ShowSwitch label="状态" bind="status" text="启用" isCheckbox word2 />
      </EasyRow>

      <EasyRow col4>
        <FormSelect label="单选类型" bind="roleType" :dict="DICT.ROLE_TYPE" double required />
        <div />

        <ShowDict label="单选类型" bind="roleType" :dict="DICT.ROLE_TYPE" suffix="色" />
        <ShowStatus label="单选类型" bind="roleType" :dict="DICT.ROLE_TYPE" :colorIndex="2" />
      </EasyRow>

      <EasyRow col2>
        <FormSelectMulti label="多选类型" bind="roleTypesList" :dict="DICT.ROLE_TYPE" triple required />
        <ShowStatusMulti label="多选类型" bind="roleTypesList" :dict="DICT.ROLE_TYPE" />
      </EasyRow>

      <EasyRow col2>
        <FormTextarea label="描述" bind="remark" required />
        <ShowText label="描述" bind="remark" />
      </EasyRow>

      <EasyDivider />

      <FormRadio label="单选类型" bind="roleType" :dict="DICT.ROLE_TYPE" hasAll noLabel required />
      <FormRadio label="单选类型" bind="roleType" :dict="DICT.ROLE_TYPE" hasAll noLabel isBtn required />

      <FormCheckbox label="多选类型" bind="roleTypesList" :dict="DICT.ROLE_TYPE" hasAll noLabel required />
      <FormCheckbox label="多选类型" bind="roleTypesList" :dict="DICT.ROLE_TYPE" hasAll noLabel isBtn required />
    </WebForm>
  </WebModal>
</template>

<script>
// ============================== 导入依赖 ============================== //

import CORE from '@/CORE'

// ============================== 导出组件 ============================== //

export default {
  /**
   * 名称定义 (实际使用名称)
   */
  name: 'MyModal',

  /**
   * 混入列表 (配置选项合并)
   */
  mixins: [CORE.mixWeb()],

  /**
   * 组件导入 (Abc.vue + Abc/index.vue)
   */
  ...CORE.components(require.context('./', true, /vue$/)),
}
</script>
